mfpsection,figure {
margin:0;
padding:0;
}
.grid-c h3 {
margin-top:0;
}

.grid-c {
clear:both;
overflow:hidden;
margin:0 -1em;
}

.grid-c p {
margin-bottom:.5em;
}

.gc3 {
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
width:50%;
float:left;
overflow:hidden;
padding:1em;
}

.grid-c .gc3:nth-of-type(2n+1) {
clear:left;
}

pre code:before {
display:block;
position:absolute;
right:3px;
top:6px;
color:#889499;
font-size:12px;
line-height:13px;
padding:3px 7px 0;
}

code.html:before {
content:'HTML';
}

code.javascript:before {
content:'JS';
}

code.css:before {
content:'CSS';
}


#mfp-build-tool {
background:#FFF;
max-width:500px;
text-align:left;
position:relative;
margin:10px auto;
padding:30px 40px 40px;
}

#mfp-build-tool h2 {
margin-top:0;
margin-bottom:.7em;
}

#mfp-build-form label {
display:block;
margin-bottom:5px;
min-height:18px;
padding-left:18px;
}

#mfp-build-form input[type=checkbox] {
line-height:normal;
cursor:pointer;
width:auto;
float:left;
margin:3px 5px 3px -18px;
}

#mfp-build-status {
min-height:40px;
}

#mfp-build-status .error {
color:#830C0C;
}

#mfp-build-status .success {
color:#014B04;
}

#mfp-build-status .progress {
color:#000;
}

#smashing {
text-align:center;
font-weight:700;
}

#smashing a:hover {
color:#FF9369;
}

.smashing-link {
margin-left:29px;
position:relative;
}

.smashing-link:before {
content:'';
display:inline-block;
width:24px;
height:24px;
background:url(http://dimsemenov.com/images/sm-logo-24x24.png);
position:absolute;
top:-4px;
left:-28px;
}

#hackernews {
margin-left:24px;
}

#hackernews:before {
background:url(http://dimsemenov.com/images/hn-logo-18x18.gif);
width:18px;
height:18px;
top:-1px;
left:-22px;
}

.share-buttons {
text-align:center;
position:relative;
margin:70px 0;
}

.share-buttons h2 {
text-align:center;
border:0;
}

.share-buttons a {
-moz-border-radius:2px;
border-radius:2px;
display:inline-block;
color:#FFF;
text-decoration:none;
background:#5AAF63;
font-size:16px;
line-height:22px;
cursor:pointer;
margin:10px;
padding:10px 20px;
}

.share-buttons a:hover {
opacity:.7;
}

#tweet {
background:#0096c4;
}

#like {
background:#3b5998;
}

#gplus {
background:#d34836;
}

#vkcom {
background:#6e8fb1;
}

pre .keyword,pre .css .rule .keyword,pre .winutils,pre .javascript .title,pre .nginx .title,pre .subst,pre .request,pre .status {
color:#333;
font-weight:700;
}

pre .string,pre .tag .value,pre .phpdoc,pre .tex .formula {
color:#D01040;
}

pre .javascript .title,pre .lisp .title,pre .clojure .title,pre .subst {
font-weight:400;
}

pre .tag,pre .tag .title,pre .rules .property,pre .django .tag .keyword {
color:navy;
font-weight:400;
}

pre .preprocessor,pre .pi,pre .doctype,pre .shebang,pre .cdata {
color:#999;
font-weight:700;
}

pre .deletion {
background:#fdd;
}

pre .addition {
background:#dfd;
}

pre .diff .change {
background:#0086b3;
}

#documentation-intro {
background:#2b2b2b;
text-align:center;
width:100%;
margin-left:-3em;
margin-bottom:3em;
padding:3em;
}

#documentation-intro h1 {
color:#FFF;
width:100%;
text-align:center;
font-size:44px;
line-height:1.1em;
}

#documentation-intro h1 a {
text-decoration:none;
color:#FFF;
}

#documentation-intro p a {
font-size:15px;
color:#7CB5FF;
}

#documentation-intro a:hover {
opacity:.75;
text-decoration:underline;
}

.hll {
background-color:#ffc;
}

.err {
color:#a61717;
background-color:#e3d2d2;
}

.gd {
color:#000;
background-color:#fdd;
}

.ge {
color:#000;
font-style:italic;
}

.gi {
color:#000;
background-color:#dfd;
}

.go {
color:#888;
}

.gs {
font-weight:700;
}

.nd {
color:#3c5d5d;
font-weight:700;
}

.ni {
color:purple;
}

.nt {
color:navy;
}

.w {
color:#bbb;
}

.ss {
color:#990073;
}

.mfp-bg {
top:0;
left:0;
width:100%;
height:100%;
z-index:1042;
overflow:hidden;
position:fixed;
background:#0b0b0b;
opacity:.8;
filter:alpha(opacity=80);
}

.mfp-wrap {
top:0;
left:0;
width:100%;
height:100%;
z-index:1043;
position:fixed;
outline:0!important;
-webkit-backface-visibility:hidden;
}

.mfp-container {
text-align:center;
position:absolute;
width:100%;
height:100%;
left:0;
top:0;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
padding:0 8px;
vertical-align:middle;
}

.mfp-container:before {
content:'';
display:inline-block;
height:100%;
vertical-align:middle;
}

.mfp-content {
position:relative;
display:inline-block;
top: 20px;
text-align:left;
z-index:1045;
margin:0 auto;
}

.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content {
width:100%;
cursor:auto;
}

.mfp-ajax-cur {
cursor:progress;
}

.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
cursor:pointer;
}

.mfp-auto-cursor .mfp-content {
cursor:auto;
}

.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter {
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}

.mfp-hide {
display:none!important;
}

.mfp-preloader a {
color:#ccc;
}

.mfp-preloader a:hover {
color:#fff;
}

button.mfp-close,button.mfp-arrow {
overflow:visible;
cursor:pointer;
background:transparent;
border:0;
-webkit-appearance:none;
display:block;
outline:0;
z-index:1046;
-webkit-box-shadow:none;
box-shadow:none;
padding:0;
}

button::-moz-focus-inner {
border:0;
padding:0;
}

.mfp-close {
width:44px;
height:44px;
line-height:44px;
position:absolute;
right:0;
top:0;
text-decoration:none;
text-align:center;
opacity:.65;
color:#fff;
font-style:normal;
font-size:28px;
font-family:Arial,Baskerville,monospace;
padding:0 0 18px 10px;
margin-top: -40px;
}

.mfp-close-btn-in .mfp-close {
color:#333;
}

.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close {
color:#fff;
right:-6px;
text-align:right;
padding-right:6px;
width:100%;
}

.mfp-counter {
position:absolute;
top:0;
right:0;
color:#fff;
font-size:12px;
line-height:18px;
padding-right: 5px;
}

.mfp-arrow {
position:absolute;
opacity:.65;
top:50%;
width:90px;
height:110px;
-webkit-tap-highlight-color:rgba(0,0,0,0);
margin:-55px 0 0;
padding:0;
}

.mfp-arrow:active {
margin-top:-54px;
}

.mfp-arrow:before,.mfp-arrow:after,.mfp-arrow .mfp-b,.mfp-arrow .mfp-a {
content:'';
display:block;
width:0;
height:0;
position:absolute;
left:0;
top:0;
margin-top:35px;
margin-left:35px;
border:medium inset transparent;
}

.mfp-arrow:after,.mfp-arrow .mfp-a {
border-top-width:13px;
border-bottom-width:13px;
top:8px;
}

.mfp-arrow:before,.mfp-arrow .mfp-b {
border-top-width:21px;
border-bottom-width:21px;
}

.mfp-arrow-left {
left:0;
}

.mfp-arrow-left:after,.mfp-arrow-left .mfp-a {
border-right:17px solid #fff;
margin-left:31px;
}

.mfp-arrow-left:before,.mfp-arrow-left .mfp-b {
margin-left:25px;
border-right:27px solid #3f3f3f;
}

.mfp-arrow-right {
right:0;
}

.mfp-arrow-right:after,.mfp-arrow-right .mfp-a {
border-left:17px solid #fff;
margin-left:39px;
}

.mfp-arrow-right:before,.mfp-arrow-right .mfp-b {
border-left:27px solid #3f3f3f;
}

.mfp-iframe-holder {
padding-top:40px;
padding-bottom:40px;
}

.mfp-iframe-holder .mfp-content {
line-height:0;
width:100%;
max-width:900px;
}

.mfp-iframe-holder .mfp-close {
top:-40px;
}

.mfp-iframe-scaler {
width:100%;
height:0;
overflow:hidden;
padding-top:56.25%;
}

.mfp-iframe-scaler iframe {
position:absolute;
display:block;
top:0;
left:0;
width:100%;
height:100%;
box-shadow:0 0 8px rgba(0,0,0,.6);
background:#fff;
}

img.mfp-img {
width:auto;
max-width:80%;
height:auto;
display:block;
line-height:0;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
margin:0 auto;
padding:0px 100px 40px 100px;
background-color: #fff;
}

.mfp-figure {
line-height:0;
background: #fff;
}

.mfp-figure:after {
content:'';
position:absolute;
left:0;
top:40px;
bottom:40px;
display:block;
right:0;
width:auto;
height:auto;
z-index:-1;
box-shadow:0 0 8px rgba(0,0,0,.6);
background:#444;
}

.mfp-figure small {
color:#bdbdbd;
display:block;
font-size:12px;
line-height:14px;
}

.mfp-bottom-bar {
margin-top:-36px;
position:absolute;
top:100%;
left:0;
width:100%;
cursor:auto;
}

.mfp-title {
text-align:left;
line-height:18px;
color:#f3f3f3;
word-wrap:break-word;
background-color: #FA9800;
margin-top: -4px;
padding: 5px 50px 5px 5px;
min-height: 40px;
}

.mfp-title ul {
	margin-left: 20px;
	list-style: circle;
}

.mfp-title ol {
	margin-left: 20px;
}

.mfp-image-holder .mfp-content {
max-width:100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
cursor:pointer;
}

.mfp-ie7 .mfp-bottom-bar {
width:600px;
left:50%;
margin-left:-300px;
margin-top:5px;
padding-bottom:5px;
}

.mfp-ie7 .mfp-content {
padding-top:44px;
}

.mfp-ie7 .mfp-close {
top:0;
right:0;
padding-top:0;
}

#logo:active h1,.mfp-close:active {
top:1px;
}

#magnific_popup_docs,.maruku_toc ul ul,#conditional-lightbox-notice,#id1,.mfp-align-top .mfp-container:before,.mfp-loading.mfp-figure,.mfp-s-ready .mfp-preloader,.mfp-s-error .mfp-content {
display:none;
}

.maruku_toc a,.example a,a.popup-link {
text-decoration:none;
border-bottom:1px dotted;
}

.zoom-cursor,.mfp-zoom {
cursor:pointer;
}

#logo-status.down,.mfp-arrow:hover,.mfp-arrow:focus {
opacity:1;
}

#logo-status .mfp-close:hover,.mfp-close:focus {
cursor: pointer;
}

#smashing a,#smashing strong {
color:#EF4A35;
}

pre .comment,pre .template_comment,pre .diff .header,pre .javadoc,.c,.cm,.c1 {
color:#998;
font-style:italic;
}

pre .number,pre .hexcolor,pre .ruby .constant,.m,.mf,.mh,.mi,.mo,.il {
color:#099;
}

pre .title,pre .id,.ne,.nf,.nl {
color:#900;
font-weight:700;
}

pre .class .title,pre .haskell .type,pre .vhdl .literal,pre .tex .command,pre .class,.kt,.nc {
color:#458;
font-weight:700;
}

pre .attribute,pre .variable,pre .lisp .body,.na,.no,.nv,.vc,.vg,.vi {
color:teal;
}

pre .regexp,.sr {
color:#009926;
}

pre .built_in,pre .lisp .title,pre .clojure .built_in,.nb {
color:#0086b3;
}

pre .chunk,.gu {
color:#aaa;
}

.k,.o,.kc,.kd,.kn,.kp,.kr,.ow {
color:#000;
font-weight:700;
}

.cp,.cs {
color:#999;
font-weight:700;
font-style:italic;
}

.gr,.gt {
color:#a00;
}

.gh,.bp {
color:#999;
}

.gp,.nn {
color:#555;
}

.s,.sb,.sc,.sd,.s2,.se,.sh,.si,.sx,.s1 {
color:#d01040;
}

.mfp-ie7 .mfp-img,.mfp-ie7 .mfp-container {
padding:0;
}

@media all and max-width75em{
.maruku_toc {
position:static;
background:0;
padding:0;
}
}

@media all and max-width50em{
#logo h1 {
font-size:52px;
margin-top:36px;
}
}

@media all and max-width30em{
#examples:after {
display:none;
}

.gc3 {
width:100%;
}

.grid-c .gc3:nth-of-type(2n+1) {
clear:none;
}

#main-wrapper {
margin-top:0;
padding:1em;
}

.highlight {
margin:1em -1em;
padding:.2em 1em;
}

#logo {
height:95px;
width:100%;
margin:0 auto 2em;
padding:0;
}

#logo h1 {
font-size:32px;
margin-top:23px;
}

h2.intro {
font-size:20px;
}
}

@media all and max-width700px{
.zoom-cursor {
cursor:pointer;
}

#conditional-lightbox-notice {
display:block;
background:#FFEAEA;
padding:10px;
}
}

@media screen and max-width800px and orientationlandscape,screen and max-height300px{
.mfp-img-mobile .mfp-image-holder {
padding-left:0;
padding-right:0;
}

.mfp-img-mobile .mfp-figure:after {
top:0;
bottom:0;
}

.mfp-img-mobile .mfp-figure small {
display:inline;
margin-left:5px;
}

.mfp-img-mobile .mfp-bottom-bar {
background:rgba(0,0,0,.6);
bottom:0;
top:auto;
position:fixed;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
margin:0;
padding:3px 5px;
}

.mfp-img-mobile .mfp-counter {
right:5px;
top:3px;
}

.mfp-img-mobile .mfp-close {
top:0;
right:0;
width:35px;
height:35px;
line-height:35px;
background:rgba(0,0,0,.6);
position:fixed;
text-align:center;
padding:0;
}

.mfp-img-mobile img.mfp-img,.mfp-img-mobile .mfp-bottom-bar:empty {
padding:0;
}
}

@media all and max-width900px{
.mfp-arrow {
-webkit-transform:scale(0.75);
transform:scale(0.75);
}

.mfp-arrow-left {
-webkit-transform-origin:0;
transform-origin:0;
}

.mfp-arrow-right {
-webkit-transform-origin:100%;
transform-origin:100%;
}

.mfp-container {
padding-left:6px;
padding-right:6px;
}
}